/***************************************************************************
* COPYRIGHT NOTICE
* Copyright 2019 Horizon Robotics, Inc.
* All rights reserved.
***************************************************************************/
#ifndef UTILITY_SENSOR_INC_F37_SETTING_H_
#define UTILITY_SENSOR_INC_F37_SETTING_H_

#ifdef __cplusplus
extern "C" {
#endif

static uint32_t f37_linear_init_setting[] = {
	0x12, 0x60,
	0x48, 0x85,
	0x48, 0x05,
	0x0E, 0x11,
	0x0F, 0x14,
	0x10, 0x48,
	0x11, 0x80,
	0x0D, 0xF0,
	0x5F, 0x41,
	0x60, 0x20,
	0x58, 0x12,
	0x57, 0x60,
	0x9D, 0x00,
	0x20, 0x00,
	0x21, 0x05,
	0x22, 0x65,
	0x23, 0x04,
	0x24, 0xC0,
	0x25, 0x38,
	0x26, 0x43,
	0x27, 0x9A,
	0x28, 0x15,
	0x29, 0x04,
	0x2A, 0x8A,
	0x2B, 0x14,
	0x2C, 0x00,
	0x2D, 0x00,
	0x2E, 0x14,
	0x2F, 0x44,
	0x41, 0xC8,
	0x42, 0x3B,
	0x47, 0x42,
	0x76, 0x60,
	0x77, 0x09,
	0x1D, 0x00,
	0x1E, 0x04,
	0x6C, 0x50,
	0x6E, 0x2C,
	0x70, 0xD0,
	0x71, 0xD3,
	0x72, 0xD4,
	0x73, 0x58,
	0x74, 0x02,
	0x78, 0x96,
	0x89, 0x01,
	0x6B, 0x20,
	0x86, 0x40,
	0x31, 0x08,
	0x32, 0x27,
	0x33, 0x60,
	0x34, 0x5E,
	0x35, 0x5E,
	0x3A, 0xAF,
	0x3B, 0x00,
	0x3C, 0x48,
	0x3D, 0x5B,
	0x3E, 0xFF,
	0x3F, 0xA8,
	0x40, 0xFF,
	0x56, 0xB2,
	0x59, 0x9E,
	0x5A, 0x04,
	0x85, 0x4D,
	0x8A, 0x04,
	0x91, 0x13,
	0x9B, 0x03,
	0x9C, 0xE1,
	0xA9, 0x78,
	0x5B, 0xB0,
	0x5C, 0x71,
	0x5D, 0x46,
	0x5E, 0x14,
	0x62, 0x01,
	0x63, 0x0F,
	0x64, 0xC0,
	0x65, 0x02,
	0x67, 0x65,
	0x66, 0x04,
	0x68, 0x00,
	0x69, 0x7C,
	0x6A, 0x12,
	0x7A, 0x80,
	0x82, 0x21,
	0x8F, 0x91,
	0xAE, 0x30,
	0x13, 0x81,
	0x96, 0x04,
	0x4A, 0x04,
	0x7E, 0xCD,
	0x50, 0x02,
	0x49, 0x00,
	0xAF, 0x12,
	0x80, 0x41,
	0x7B, 0x4A,
	0x7C, 0x08,
	0x7F, 0x57,
	0x90, 0x00,
	0x8C, 0xFF,
	0x8D, 0xC7,
	0x8E, 0x00,
	0x8B, 0x01,
	0x0C, 0x00,
	0x81, 0x74,
	0x19, 0x20,
	0x46, 0x00,
	0x4b, 0x00,
	0x4c, 0x00,
	0x4d, 0x00,
	0x4e, 0x00,
//	0x12, 0x20,
//	0x48, 0x85,
//	0x48, 0x05,
};

static uint32_t f37_HDR_init_setting[] = {
	0x12, 0x68,
	0x48, 0x85,
	0x48, 0x05,
	0x0E, 0x11,
	0x0F, 0x14,
	0x10, 0x48,
	0x11, 0x80,
	0x0D, 0xF0,
	0x5F, 0x41,
	0x60, 0x20,
	0x58, 0x12,
	0x57, 0x60,
	0x9D, 0x00,
	0x20, 0x00,
	0x21, 0x05,
	0x22, 0xCA,
	0x23, 0x08,
	0x24, 0xC0,
	0x25, 0x38,
	0x26, 0x43,
	0x27, 0x98,
	0x28, 0x29,
	0x29, 0x04,
	0x2A, 0x8A,
	0x2B, 0x14,
	0x2C, 0x02,
	0x2D, 0x00,
	0x2E, 0x14,
	0x2F, 0x44,
	0x41, 0xC5,
	0x42, 0x3B,
	0x47, 0x42,
	0x76, 0x60,
	0x77, 0x09,
	0x80, 0x41,
	0xAF, 0x22,
	0xAB, 0x00,
	0x46, 0x04,
	0x1D, 0x00,
	0x1E, 0x04,
	0x6C, 0x50,
	0x6E, 0x2C,
	0x70, 0xD0,
	0x71, 0xD3,
	0x72, 0xD4,
	0x73, 0x58,
	0x74, 0x02,
	0x78, 0x96,
	0x89, 0x81,
	0x6B, 0x20,
	0x86, 0x40,
	0x31, 0x08,
	0x32, 0x27,
	0x33, 0x60,
	0x34, 0x5E,
	0x35, 0x5E,
	0x3A, 0xAF,
	0x3B, 0x00,
	0x3C, 0x48,
	0x3D, 0x5B,
	0x3E, 0xFF,
	0x3F, 0xA8,
	0x40, 0xFF,
	0x56, 0xB2,
	0x59, 0x9E,
	0x5A, 0x04,
	0x85, 0x4D,
	0x8A, 0x04,
	0x91, 0x13,
	0x9B, 0x43,
	0x9C, 0xE1,
	0xA9, 0x78,
	0x5B, 0xB0,
	0x5C, 0x71,
	0x5D, 0xF6,
	0x5E, 0x14,
	0x62, 0x01,
	0x63, 0x0F,
	0x64, 0xC0,
	0x65, 0x02,
	0x67, 0x65,
	0x66, 0x04,
	0x68, 0x00,
	0x69, 0x7C,
	0x6A, 0x12,
	0x7A, 0x80,
	0x82, 0x21,
	0x8F, 0x91,
	0xAE, 0x30,
	0x13, 0x81,
	0x96, 0x04,
	0x4A, 0x04,
	0x7E, 0xCD,
	0x50, 0x02,
	0x49, 0x00,
	0xAF, 0x12,
	0x7B, 0x4A,
	0x7C, 0x08,
	0x7F, 0x57,
	0x90, 0x00,
	0x8C, 0xFF,
	0x8D, 0xC7,
	0x8E, 0x00,
	0x8B, 0x01,
	0x0C, 0x00,
	0x81, 0x74,
	0x19, 0x20,
	0x07, 0x03,
	0x1B, 0x4F,
	0x06, 0x23,
	0x03, 0xFF,
	0x04, 0xFF,
	0x4b, 0x00,
	0x4c, 0x00,
	0x4d, 0x00,
	0x4e, 0x00,
	//0x12, 0x28,
	//0x48, 0x85,
	//0x48, 0x05,
};

static uint32_t f37_linear_stream_on_setting[] = {
	0x12, 0x20,
	0x48, 0x85,
	0x48, 0x05,
};

static uint32_t f37_hdr_stream_on_setting[] = {
	0x12, 0x28,
	0x48, 0x85,
	0x48, 0x05,
};

static uint32_t f37_stream_off_setting[] = {
	0x12, 0x60
};

static uint32_t f37_gain_lut[] = {
	0x00,
	0x00,
	0x00,
	0x01,
	0x01,
	0x02,
	0x02,
	0x02,
	0x03,
	0x03,
	0x04,
	0x04,
	0x04,
	0x05,
	0x05,
	0x06,
	0x06,
	0x07,
	0x07,
	0x08,
	0x08,
	0x09,
	0x0a,
	0x0a,
	0x0b,
	0x0b,
	0x0c,
	0x0c,
	0x0d,
	0x0e,
	0x0f,
	0x0f,
	0x10,
	0x10,
	0x10,
	0x11,
	0x11,
	0x11,
	0x12,
	0x12,
	0x13,
	0x13,
	0x14,
	0x14,
	0x15,
	0x15,
	0x15,
	0x16,
	0x16,
	0x17,
	0x17,
	0x18,
	0x18,
	0x19,
	0x1a,
	0x1a,
	0x1b,
	0x1b,
	0x1c,
	0x1d,
	0x1d,
	0x1e,
	0x1e,
	0x1f,
	0x20,
	0x20,
	0x20,
	0x21,
	0x21,
	0x21,
	0x22,
	0x22,
	0x23,
	0x23,
	0x23,
	0x24,
	0x24,
	0x25,
	0x25,
	0x26,
	0x26,
	0x27,
	0x27,
	0x28,
	0x28,
	0x29,
	0x29,
	0x2a,
	0x2b,
	0x2b,
	0x2c,
	0x2d,
	0x2d,
	0x2e,
	0x2e,
	0x2f,
	0x30,
	0x30,
	0x30,
	0x31,
	0x31,
	0x32,
	0x32,
	0x32,
	0x33,
	0x33,
	0x34,
	0x34,
	0x34,
	0x35,
	0x35,
	0x36,
	0x36,
	0x37,
	0x37,
	0x38,
	0x38,
	0x39,
	0x3a,
	0x3a,
	0x3b,
	0x3b,
	0x3c,
	0x3c,
	0x3d,
	0x3e,
	0x3e,
	0x3f,
	0x40,
	0x40,
	0x41,
	0x41,
	0x41,
	0x41,
	0x42,
	0x42,
	0x43,
	0x43,
	0x44,
	0x44,
	0x44,
	0x45,
	0x45,
	0x46,
	0x46,
	0x47,
	0x47,
	0x48,
	0x48,
	0x49,
	0x49,
	0x4a,
	0x4a,
	0x4b,
	0x4c,
	0x4c,
	0x4d,
	0x4e,
	0x4e,
	0x4f,
	0x50,
	0x50,
	0x50,
	0x51,
	0x51,
	0x51,
	0x52,
	0x52,
	0x53,
	0x53,
	0x54,
	0x54,
	0x54,
	0x55,
	0x55,
	0x56,
	0x56,
	0x57,
	0x57,
	0x58,
	0x58,
	0x59,
	0x59,
	0x5a,
	0x5a,
	0x5b,
	0x5c,
	0x5c,
	0x5d,
	0x5e,
	0x5e,
	0x5f,
	0x60,
	0x60,
	0x60,
	0x61,
	0x61,
	0x61,
	0x62,
	0x62,
	0x63,
	0x63,
	0x64,
	0x64,
	0x64,
	0x65,
	0x65,
	0x66,
	0x66,
	0x67,
	0x67,
	0x68,
	0x68,
	0x69,
	0x6a,
	0x6a,
	0x6b,
	0x6b,
	0x6c,
	0x6c,
	0x6d,
	0x6e,
	0x6e,
	0x6f,
	0x70,
	0x70,
	0x70,
	0x71,
	0x71,
	0x71,
	0x72,
	0x72,
	0x73,
	0x73,
	0x74,
	0x74,
	0x74,
	0x75,
	0x75,
	0x76,
	0x76,
	0x77,
	0x77,
	0x78,
	0x78,
	0x79,
	0x7a,
	0x7a,
	0x7b,
	0x7b,
	0x7c,
	0x7c,
	0x7d,
	0x7e,
	0x7f,
};

#ifdef __cplusplus
}
#endif

#endif  //UTILITY_SENSOR_INC_F37_SETTING_H_

